fix objectWithDictionary: Bug