fixed error win on originate func.