Fix invalid service state
Merge pull request #25 from lukecyca/patch-3

Fix invalid service state