Fixed referencing bug.