Fixed iOS 7 related issue