Fix errors
For now, load enviroment in index.php