Fixed search for num

Has a bug when scaling to 20