Fix ValueError bug.
Merge pull request #5 from petrus-jvrensburg/master

Fix ValueError bug.