fixed magic method for querying objects; fixed vanity objects having no name set to generate slug from