Fixed a two small bugs with seeking through an input-stream.