old migration bug fix