Fix generic modal.