Bugfix - not having a selectedType shouldn't force startsWith instead of contains.