fix compile warnings
fix silly error