fix viewport being reset to 800x600 on ui-show