fix bug with default values. fixes #14