workaround for https://twistedmatrix.com/trac/ticket/6849