Fix for pdf not printing