 		let lastIndexPath = visibleRows?[visibleRows.count-1] as NSIndexPath?
 		
 		UIView.animateWithDuration(keyboardDuration, delay: 0.0, options: UIViewAnimationOptions.CurveEaseOut, animations: {
-			baseView.frame = CGRectMake(baseView.frame.origin.x, baseView.frame.origin.y, baseView.frame.size.width, baseView.frame.size.height - keyboardFrame.size.height)
+			baseView!.frame = CGRectMake(baseView!.frame.origin.x, baseView!.frame.origin.y, baseView!.frame.size.width, baseView!.frame.size.height - keyboardFrame.size.height)
 		
 		}, completion: {
 			(finished: Bool) in
 
-			if lastIndexPath {
+			if lastIndexPath != nil {
 	
 				// Scroll down the table so that the last
 				// visible row remains visible

		// Synchronize access to color list
		objc_sync_enter(self)

		if !_colors[address!] {
			
			// Generate color from address
			var addr = in_addr(s_addr: 0)
			inet_aton(address.bridgeToObjectiveC().UTF8String, &addr)
			
			let b1 = UInt32(addr.s_addr) >> 24
			let b2 = (UInt32(addr.s_addr) & 0x00ff0000) >> 16

		
		var color = UIColor.whiteColor()

		if address != nil {
			
			// Synchronize access to color list
			objc_sync_enter(self)
