fix bug notifications.js