Fixes JSONStream undefined