fixed when there is no category, error in home page