fix app settingslogic