quickly fixed get_entity for sets and params