fixed warnings

Fixed compile warnings.