Fix for session-expired problem.