fix bug for index.html