fixed the setting getting overriden