Fix modal events