little bugfix on the reading from file routine