Fix handling of slugs