fixed converting from names to slug