Not sure why this posted a second time, but thank you and yes the nested gosub is the issue. I went back and it is documented in the manual. I changed the gosub to goto and it works as intended.
Thanks everyone
George