fix printing error