fixed config dialog crashing