fix the compile warnings