use correct index for room selection check