fix migrate client