popup fix / error hangling