fix commands of spawn process