Fix search by number not working on postgre.