session fix bug