Fix Tps, rewriting the config