fixed bug with config