don't permalink negative IDs (fixes #1374)