Fixed error message on homepage