Fix migration tool.