type and role bug solved