fixes problem with invalid condition in find methods in setImageTitles() and sort()