Popup background gets applied twice

If you close the pup up and open it again, the background color will darken because the background color gets applied twice, and the opacity feature gets lost.