fix npe in migration rule