Fixed issue with printing