Fixed bug for multiple process