Fix error at new record