Was referencing a deleted object that caused problems.