Fixing passing of config