Fixed negative hash problem