Fixed one of the error using a global var 'running' to know if all is running