fixes #128 popup issue