Fixed bug where resources were read using a filereader instead of a streamreader