Fix for this issue.

Fix for #65 use model validation to prevent invalid parameters.