Fix default values for arguments

If the argument is not a number, use the default.

Fixes #23