stab at fixing the AppRegistryIsNotReady error.