fix compile posts error