Fixed head bugs with index.html