Fixed iOS 5 bug