Fix error when selector is not present.