fix permissions of created fig.yml