Fixed a focusing issue under iOS 7.