Prevent exception when locator contains !