fix for get_category method on blog_posts model