Fix migration when Publicaiton is not defined.