RegisterForNotifications crash bug fixed