That error usually pops up when you call series differently in different executions of the run() function. Are there any series calls inside an if() statement?