defend from wrong id