Make sure permissions are correct