fixing a session realted issue