fixed a few issues in the compiler