map does not skip value in the middle of a stream