Temporary fix for session terminate issue.