Well, it only took me 4 hours to find this bug...