Fix when default value was set to false

False error, when defaultValue was set to false.
Merge pull request #7 from Moones/patch-2

Fix when default value was set to false