Fix a bug of click event triggering in old Safari.