Hi Orsome, when I had problems with fuel coming out of the top cap, I ordered a new gasket set and then took my carburetor apart.
I believe that if the carb is flooded, due to heat and pressure, it will exit through that cap.
From the inside, look at the left hand side in the photo. It is the flat round brass disc. I don't know how it is opened to see the filter.
Below that disc is a large brass nut. That is the needle valve which works with the plastic float (right side in photo)
Mr Reno suggested that perhaps my needle valve was sticking and letting in too much fuel, or that the float was faulty.
The float looked OK, so I just cleaned everything inside with carb cleaner and air from a compressor.
There is also a filter in the brass pipe where fuel enters the carb from the fuel pump. Just unscrew that brass pipe to discover it. It looks very fragile so handle with care.
But I'm sure you know this
One of my biggest carb problems was the idle mixture screw. It's no use adjusting that screw in and out if the passage is blocked. So make sure its cleaned out completely so that if you spray carb cleaner in the hole, you can see it come out the other side. only then can you set the screw. The point of the screw should also be checked for damage.
So after all the cleaning and with new gaskets, and with Mr Reno's advice, my problem disappeared. Here is the carb photo of the inside