corrections to clean_gamepad()