bug fix in new record