fix config struct