Fixed reference bug.