statistics migration fixed