fix config not loaded first