BUG:fix a bug of session and remove useless files