fix issue where value was 0
Merge pull request #1 from kareem/master

Fix issue where zero value was causing script to fail