Fixed permission errors.