fix processing classes with similar name (one of them is prefix for another)