fixed popup error rendering