Fix multiple popups overlay

Fixes #218