Fix permission issues on initial run.