Fix parsing of settings