Fix index.htm removal bug