fixed minor reference bug