Fixing some permission-y things