small fix for fetching a notification from database