fixed compileStatement call