Fixed error on advance search if no user logged in