Some workarounds for better .dot parsing.