fix bug in setting default role