fix printing issue