Fixed segfault when editing string properties in GUI

I fixed a SEGFAULT when editing a string property from the GUI. It was probably just a Copy&Paste mistake that was overlooked.