fix use un-initialized hash