Fix modal box hide on destroy action