Fix error object.

Change NSArray to NSDictionary.