fix compile sd2