Generating slugs causes errors