Fixed rendering bug within dialogs after multiple calls