fixed index.html processing