midi: tie bug fix.