bug in the is unique implementation