Fixes event delegation issue.