Update Core.php

fix filter batch when the loop doesn't need to be filled