Fix dynamic config generator method