Fixed some compile warnings