Fix segfault when editing text properties