fix log creation permissions