Fixed a bug in _addPoleID