Fixed segfault when editing string properties in GUI

I fixed a SEGFAULT when editing a string property from the GUI. Was probably just a Copy&Paste mistake.