fixed return value of available streams if empty