Added a check to make sure the Hash value cannot be changed using the returned Ref.