bugfix: while sscanf, nread not initialised