Fixed bug in showing notifcations