tor: fix conditionals