Fix for DisplayOnlyWidget in compound_id regression