Fixing bug in layout navbar