Fixed a bug for clicking