Fixed undefined $search