fixed bug in navbar alerts