fixed small bug with session wiring