Fix a few minor typo's in state changing, prevents proxy mode from launching.
Merge pull request #37 from melair/development

Fix a few minor typo's in state changing, prevents proxy mode from launching.