fix bugs of clicking when no  input