fix spawn ctrl+c issue