fixed interrupt bug