Fixed warnings in iOS 6