Fixes a permissions error