fixed #226, bug in used global variable analysis
repl compile clear errors