Bug fix

Exception thrown when leaf is not nsdictionary