Fix URIs when auto-assigning