Fixing irregular spacing in all directions