Fix issue in parsing roles