fix bugs in search on personal codes
further quick bug fix