fix config generator