fix packages not being applied on dialogs