Fix the default session bug