fix error if the role name contain space