Fixes a permission to run generator