fix convesion of config