Remove potential duplicating ids