fixed problem with set_role