fix some bug on poi and toi