Fixed heap journaling code. Now it should calculate limits correctly (i.e. according to actual ordering, not the false horizontal ordering).