Fixed recreation of streamreader, and minor typo