fix crazy ordering of static initialization