Set access exact_write to TRUE temporarily
Fix bug: kernel->tree should not be freed in createKernel