fixed HasRole error