Fixed reset issue on strean