Misnamed variable in search model