bug in print script