hidden.bs.modal workaround