Fixes latticeCoord inefficiency