Fix in ground atom hash based with negative