fix previous commit.
refine update condition.