text message out of bounds fix