trivial: fix bug, t needs to be set before call update t's neighbours