fix bug delele code