Fixed a referencing bug.