Updated to fix a bug in iPhone 5