error in printing fix