Fix maintain_migrate validation issue

Should resolve issues #41 and #47.