Odd numbers working, but duplicates aren't