fixbug: error modal is not shown