history session fix