Fixing bar button issue for iOS 6.