Fixed an error with buttons and sending commands