Bugfix for folder permissions