Spent massive amounts of time trying to figure something out; finally fixed