attachRole fix