Fixed warning on partial application of click function