fixing iOS 6.1 bug