fixed bug on print record