Fix http://dev.1flow.net/webapps/1flow/group/4093/
Merge pull request #49 from Karmak23/master

Fix small code typo & small refactor to avoid superfluous test