fixed some compile warnings