Embarrassed how long it took me to debug this.