fixed a ustream bug that would case the stream to stop working after a short amount of time