fixed creating new fields bug (error message would display if there were no custom fields created