Fixes usage of the es_role attribute.