fixed loading from index.html