Fix onClick~ event