Make sure click function is not set to NULL