[BUGFIX] Fixed bug with permissions