small fix for missing session