fixed check_record