fixed ctrl-c

Signed-off-by: Peter <mcheung63@hotmail.com>