fixed wrong data being send on migrate