avoid negative hash for integers