Fix: Depreciated calls to a deleted method.