Fix strictness of cage detection.