Changing Screen Orientation for different scenes is not working?

I am making a game where difference scenes have different required screen orientations. I change scenes by using buttons that call a function like

{
Screen.orientation = ScreenOrientation.Portrait;
SceneManager.LoadLevel(“scene one”);
}

(ive tried this function with the orientation change both above and below the scene change.)

where the current scenes orientation is landscape and the new scene should be portrait. When I try this on android, the scene I am loading goes crazy where the top of the screen is flickering and/or blue and the alignment is all wrong. If I press the home button on the android and click on the app again, the scene opens up great! But I would like to know how to get it to open up right without pressing the home android button. Anyone know what my problem is?

This bug was fixed when i updated to 5.5.1.