shaper: add hack to workaround grid-fitting