fix exception on processes on mac