Fixed bug that caused crash on home page.