fix a bug that imageBuildTask status not correct.