fixes issue #335

realUserCtx.roles as Map now handles correct;y in sync function