Fixed a bug in the line interrupt mechanism