Fix spaces in class bug

Fix bug where toggling adds excess spaces in nav class.