Prevent double report.
Merge pull request #53 from dereuromark/master-validfunction

Prevent double report.