fix bug of can't update while scan