critical fix for run.js