Fixed iOS 7.1 bug