fix bug for calculate task in master