correct error on print output