Fixed settings dialog, no more segfault.