interrupt mask bug fix