Fixes modular-scale encoding.
Fixes photoset-grid