fixed bug in handling default value
Merge pull request #1 from ianstormtaylor/patch-1

fixed bug in handling default value