fixing bug in calculation of revision text hash