[*] fixed a bug with rewindAfterRead parameter handling