fixed bug with rendering index.html