fixed errors in processes.js