fix bug, can not remove session file