Fixed uninitialized variable.
Fixed adding and removing of export popups.