fix milestoneid insertion