Fixed usercontext and privileges