Fix migrate agenda