fixed bug for unable to remove session variables