fixed bug in text-mark