fixing bug in mhash-resize