bug fix for session attribute remove- Manli