Fix bug of nav class