fixed error on non-existent directory during migration