Avoid duplicate key id