fix notice when id was not set