Thank you for your answer dxw00d.
Yes I am, the code was working with no problems before, I didn't change anything. Something must go wrong with the xbee itself or the xbee module. It`s TX all the time... Maybe I need to reconfigure the xbee or something...