fixed iOS 7 bug.