a reference bug fixed