bugfix session marginal case