Fixed weird bug in search auto-complete.