Some clownish debugging of Country onBeforeWrite (I will fix this properly)