fix bug in navbar