hacking for sag bug in print mode