fix exception for invalid user session