fix bug that breaks the tool if pivot pos changed

use group and ungroup now