distinct bugfix