fix detection of contemporaries in debug mode