avoid badrecord error