There was still one more error in relation to the mentioned original strategy. I fixed it to check the correct variable.