Fix notifications

I'd say, wild guess, 30-50% of the time my notifications will not load forcing multiple reloading of the page and another 5-10% of the time it simply breaks and gives an error.