fix to get total stream size