fixed bug in streamline invoke