fixed bug with configuration loading