Update index.php

Fixed error loading kirby at the wrong time