I just had the exact same problem. I had accidentally named the scripts.js file I was writing the jquery functions in as “jquery” when I enqueued it in my functions.php file. This was causing scripts.js to load twice and render my #nav twice. I removed the duplicate “jquery” name and it fixed it