fixed prompt printing after errors in INTERACTIVE mode