Transparent background with fire. (Cycles)

Hello sorry if this is the wrong forum, but I have a simple question. I’m trying to set the background as alpha in cycles and render a flame. However, every time I turn on the alpha background, the flame doesn’t appear. Is there a way to do this or is it impossible?