bugfix for portrait positioning