bug fix in readMLFile function