Fix nav bar bug when act.name is null