Fixed platform switch issues in Xamarin studio