Resolved bug when searching by class