fix BuildSDFormat