Fixed crashing issue with NSOrderedDictionary