fix bug

fix line 1585