Fixed 'call to undefined method addToRoots()'