fix error on homepage view