fix twisted conversion, fixes #1000