Fixed reference to deleted object.