fix doc warnings
fix compile warnings