Help with 2 digit buttons?

I have a NX1000 One touch controller. I modified an existing smartapp to be able to use all of the buttons. The issue I have run into is when I get to the two digit number. If I press buttons 1-9 I can see in the login it registers the button press and executes the correct executehandler number. If I press buttons 10-15 I see in the log it registers the correct button, but it seems like the hub only recognizes the first character and executes as if button 1 is pressed. Any direction would be helpful. Thanks

When I press button 9
6:44:46 PM: debug Found: false for notifications_9_pushed
6:44:46 PM: debug toggle: [Test Switch] = [on]
6:44:46 PM: debug Found: [Test Switch] for lights_9_pushed
6:44:46 PM: debug executeHandlers: 9 - pushed
6:44:46 PM: debug Found 1 events in past 3 seconds
6:44:46 PM: debug button: {“buttonNumber”:9}, value: pushed
6:44:46 PM: debug buttonEvent: button = pushed ({“buttonNumber”:9})

When I press button 11
6:42:59 PM: debug Found: false for notifications_1_pushed
6:42:59 PM: debug toggle: [Test Switch] = [off]
6:42:59 PM: debug Found: [Test Switch] for lights_1_pushed
6:42:59 PM: debug executeHandlers: 1 - pushed
6:42:59 PM: debug Found 1 events in past 3 seconds
6:42:59 PM: debug button: {“buttonNumber”:11}, value: pushed
6:42:59 PM: debug buttonEvent: button = pushed ({“buttonNumber”:11})