fixed bug delete if notifications are empty