bug fixing link and stop session