fixed incompatibility with twisted 13.1.0 reported in #7