Fixed incorrect message error in the stream API