Bugfix for popup options

Fixed bug when newly opened popups' options ended up being overwritten by the options of the currently opened instance.