fix for crash in text link clicking