Fix transforms bug

Preemptively fix this before we need another big bug hunt to find it.