Fixes wrong attribute in search.