prevent error when id is string value