fixed some bug after roles changed