Getting desperate and throwing in some sleeps to see if there's a race condition or something going on...