Adjust max class length