Problem with button/led example

I have followed the example for the button/led… I have two xbee S1 modules. When I press the button the led lights up, but it flashes instead of staying solid… any suggestions?

I am powering both from the same 2xAA and used XCTU to reset to defaults and change the required fields following the examples.

open serial port on module with LED and observe if its flooded with many API frames.

I am suspecting this to be a result of bad hardware (button).