Fix a bug in restkit