fixed a bug updating progress