fix ctrl+c fail issue