fixed a bug caused by 0 input on links search