migration bug fix.