Fixing attribute not being queried and failed search.