Fix stream.toObject() fuckup.