Fixed issue on relations with personalized class_name