Fixed bug when changing orientation in SSO dialog