Fix typo in session class (check function)