[PD-dev] GEM scale vs. maxlib scale workaround