Fix alias selector to work when there are spaces in the selector