Fixed wrong uid for restricted profiles