Fix the flow in the logic of the method returning the latest batch of results