fixing print preview