fixed custom field initialization