fix configuration loading