fixed loadData error when record is new