Fix issue #1 with garbage from file during reading.