Use more reliable way to sync ids