fixed bug with missing prev_hi