Fix double interrupt time counting bug