fix compile bugs in documentation