Fix code, some missing cubeSize variable declarations.