The end cap that I used wasn't the best fit either, a piece of plastic bag as a shim to tighten the fit helped, just lay it across the cap and press it onto the oil filter housing, if it's still loose, use a double layer of plastic or a thicker bag.
Tim