Fix ModeT
Merge pull request #86 from prep/modet

Fix ModeT