Added a small sleep to fix stream issues

workaround pending.