Fix modal hide problem