fix bug in role model