fixed more compile warnings