Fix for reading cfg file