fix 'when' attribute for placemarks