Fix bug with text which contains CR