Automatic alignment of a rigid spacer cavity