fixed view update bug.