fix bug in search controller for user_location