fix migration bug from wordpress