fixed getSession problems