fix bug about code in rm win pwd