Fixed bug with stopProcess