Fix getNotifications callback