Fixes page popping up when header becomes fixed

* Bug from pull request 29
Fixes headers being hidden when navigating

* Bug from merge request #29