fix in dtcoretext, line was sometimes nil