fix blogs controller pagination for the last page