fix compile bug for documentation