Fixed code field bug