fixes for symbols in text
fix potential crash in text handling