fixed cfg.txt bug