fixed obvious bug, redmine issue #539
Merge pull request #125 from WickedDevice/master

fixed obvious bug, redmine issue #539