Fixed a couple more errors with permissions