Protect id overwriting