Workaround for the click event