Updated the ctor of Hash.