Fix config

this should work better than the fix in #4145. 

@kabum can you check if this also works for your case?

@DeepDiver1975 @eMerzh @butonic