Fix compilation error due to ambiguous addObject