minor fixes on migrations