[lib] minor bug fix introduced in 0.1.4 with wrong reference to input stream