fix up homepage not working properly.