Fix incorrect geometry when running under iOS 8.