Fixed bug with ResReader caused by some recent changes.