fixes #8066: add missing % functions to grid less code