fix apply_configuration