fix a bug when progma run complate