Bug fix on rerunnable migrations