Fixed warnings during compile