fix broken unit guessing when all elements are 0