Fixed homepage 500 error