fixed callback migration bugs