restore the type transfer