I can't really explain why moving this assignment has that strong of an effect --- the VM is doing some weird things. But it does fix the problem