try to reset modal after hide