fix select nav bar bug