Fixing a couple permissions bugs.