fix in polyclass()