Bugfix for popup options inheritance

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