fixed an issue with the entity selector.