Fix deprecated class_name call.