A method for filling needleless injector capsules with liquid drug, whereby dissolved gas within the drug is replaced by a less soluble gas in order to reduce the inclusion of gas bubbles, or to prevent the growth of bubbles during storage and thereby prevent breakage of the capsules.