Fix a bug in interrupt module.