This part of fix looks good to and tried it with the specific cfg file, it works well :)