Fixing issue when trying to interrogate between id and name attribute usage