Fix print preview, print query