Session role casting as string bug fixed