fix apply settings