Fixes for portrait orientation problems.