Fixed bug in gensettings