fixed casting of config values