Fixed interrupt issues, particularly when ime is off