The error seems to be caused due to a variable name mismatch. The correct variable, after reviewing, is as follows: