fixed ctrl+c bug