fix bug in line 180&184