Fixed passing of config