fix compile bugs for documentation