Migration scripts fixes. Close #85.