Have you tried getting rid of the transparent layer. Maybe that has some green in it. Try this first then try and add a white layer.
Or if the green is in your other layers try a colour to alpha on each layer with the colour you want to remove being the colour in your text layer outside if the text. (colour pick outside your text). You may need to select that layer first with the magic wand so the text isn't selected
Ahh reading your question properly seems like your problem is in you last step. Don't flatten your image unless you want the background to be a colour, same as with exporting to JPG's. Merge visible layers and it should be ok. But you shouldn't need an extra transparent layer in there anyhow unless it has something on it.
Or if the green is in your other layers try a colour to alpha on each layer with the colour you want to remove being the colour in your text layer outside if the text. (colour pick outside your text). You may need to select that layer first with the magic wand so the text isn't selected
Ahh reading your question properly seems like your problem is in you last step. Don't flatten your image unless you want the background to be a colour, same as with exporting to JPG's. Merge visible layers and it should be ok. But you shouldn't need an extra transparent layer in there anyhow unless it has something on it.