Better reduce docstring
Fixed uniq memory leak