fixed error filter search "slice of undefined"