Fixed _get_session exception.