Fix bugs occurring when TextExpander is not installed