Fixed entities searching when brackets are included