fixed parsing with double or more nested classes