Fixing printerstream bug