Fixes bad comparison of stream objects