fixed an error due to erasing custom field