fix bug of spm build util