Fixed warnings

detected by Xcode 6