fixed a weird bug in iOS 8.0 on some devices