Bug removed when cfg file is read