fix compile warnings on documents