fixed config loop