Fixed unable to create popbox instance when creating programatically.