fix npe in migration event