fix codename resetting