Fix class spacing generation