fixed the issues brought by updating bootbox