fix compatibility with old couch_core