Fixed a reference bug.