fix bug of compensation tool