fixed hash problem