Fixed variable syntax

This fixes the navbar being under the content on scroll, plus a couple other bugs.