fixed bugs in the interpreter