Fix for empty session.