fix config blocks