fixed conversion:range issue for class typing