fix migrate issue