Fixed iOS 7 bugs