small fix for Session