small fixes on migrations