little optimization in find algorithm; fix alert background scalegrid