fix for iOS8 button being sent as -1