Bugfix of rebuild privelegies