fix some bug
fix keyinterrupt exception