Fixed some migrations errors.