fix bug with iOS 5.1