Fixed Modal Event-Triggering Bug