bugfix public/index.php