fixed bug due to removed session