Fixed warnings

Fixed some warnings.