fix onRun should only run once.

Closes Issue #749