fix nav not collapsed bug