fixing migration of data