fix a reference bug