Correct scoping issue with rack usage detection.