fixed the stream version on scala 2.10