Fix setting the initial permission bits