Yep, there's a missing GOTO that would force a return to the start of the control cycle at 1650 when all the functional directions are examined. The program slips into a mini subroutine at 1720 without opposition and runs into a RETURN command which causes the error. Try this line, see if it helps:
1715 GOTO1650