Fix crash when a cube is neighbored with the base