stream object emits error

Fix for issue #68