fixing unique bug with zero