Fixed error while displaying home page