Fixed a bug on the _getSelector function