Fixed several interrupt problems.