fix user role and duplicate paths