diff --git a/modules/bindings/pymod/tmtools.py b/modules/bindings/pymod/tmtools.py
index 04db235931de9885850cc2c412cb8ed7038c6399..522a2dd559e31fb6656dca3ad20dc9a42d360722 100644
--- a/modules/bindings/pymod/tmtools.py
+++ b/modules/bindings/pymod/tmtools.py
@@ -68,7 +68,7 @@ def _ParseTmAlign(lines):
   alignment = seq.CreateAlignment()
   alignment.AddSequence(seq2)
   alignment.AddSequence(seq1)
-  return TMAlignResult(rmsd, aln_length, tm_score, tf, seq2, alignment)
+  return TMAlignResult(rmsd, tm_score, aln_length, tf, seq2, alignment)
 
 def _RunTmAlign(tmalign, tmp_dir):
   model1_filename=os.path.join(tmp_dir, 'model01.pdb')