Fixed warnings on compilation