fix interrupt bug