fix issue #139 where migrating up and down throw an error after all migrations have processed