Fixed warnings raised by Xcode