fixed two migration errors