Fix mistake in type of variables for pid