Fixes portrait bug