Bugfixes in JIT compiler