fix bug of navbar