bug fix: printing multiple pages