fix activerecord search