Fixed bug with openFileRead not returning the right stream ID