fixed issue where resetting collections in a batch was throwing an error in some cases