navigateToPage fix for real devices.