Fix small bugs in minIni file opening