Fixed notifications not updating until the page is refreshed.