bug fix for session unset