fix crash which caused by recursively invoking flush pending history in command manager
fix crash which caused by recursively invoking flush pending history in command manager

dava/wgtf,dava/wgtf,dava/wgtf,dava/wgtf,dava/wgtf