Fix the buddyName compare before creating session.