fix for add that crashed when adding a subclassed batch