Fixed static analysis warnings foind in Xcode 5