(LOCATE:1) means that the first parameter of LOCATE is causing the error. Keep in mind that you said DISPLAY 1 right before LOCATE and that means you're on the 40x30 lower screen.