--- luatex-fonts-otn.lua.orig 2014-04-05 15:02:34.711828352 +0200 +++ luatex-fonts-otn.lua 2014-04-05 15:02:36.955171990 +0200 @@ -2375,7 +2375,7 @@ end end start = start.next - elseif id == math_code then + elseif id == math_code and start.subtype == 0 then start = end_of_math(start).next else start = start.next @@ -2567,7 +2567,7 @@ end end start = start.next - elseif id == math_code then + elseif id == math_code and start.subtype == 0 then start = end_of_math(start).next else start = start.next