fix detection of ids on events endpoint