fix issues in click binding