fix rotation for printing