Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Catalog\Model\Layer\Category\CollectionFilter::filter() must be an instance of Magento\Catalog\Model\Category, instance of MGS\Blog\Model\Category given, called in /home/donmiat/public_html/vendor/magento/module-catalog/Model/Layer.php on line 162 and defined in /home/donmiat/public_html/vendor/magento/module-catalog/Model/Layer/Category/CollectionFilter.php:49 Stack trace: #0 /home/donmiat/public_html/vendor/magento/module-catalog/Model/Layer.php(162): Magento\Catalog\Model\Layer\Category\CollectionFilter->filter(Object(Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor), Object(MGS\Blog\Model\Category)) #1 /home/donmiat/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Catalog\Model\Layer->prepareProductCollection(Object(Magento\Catalog\Model\ResourceModel\Product\Collection\Interceptor)) #2 /home/donmiat/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Catalog\Model\Layer\Category\In in /home/donmiat/public_html/vendor/magento/module-catalog/Model/Layer/Category/CollectionFilter.php on line 49