fix mode detection changed in sprint 21
Merge pull request #6 from redmunds/fix-mode-detection

Fix mode detection changed in sprint 21