fixed null pointer in newRun