bugfix in sessions