fixed problem with printing