small session scope fix