fix bug while print