Fixed problem with incorrect count on home page