Fix failed record creation