Don't change close votes based on what's written in the comments (unless the comment merely shows that you misunderstood or misjudged something).
If the asker gives more information regarding their question in a comment, that should be edited into the question[1] (by either you[2] or the asker), at which point you can change your close vote if what's now written in the question justifies it.
If the asker asks about a different issue in the comments than what they asked in their question (which sounds like the case here) (even if both of these issues are with the same code posted in their question[3]), that should be asked in a separate question.
This is especially true if the question already has one or more answers.
[1]: ... unless the question is already closed and this edit wouldn't address the close reason(s). Editing brings attention to the post, and may also add it to the reopen queue if it's a closed question, which we don't really want to do if the question is closed and should remain closed.
[2]: If you don't have full edit privileges (i.e. you have less than 2k reputation), make sure to add an edit summary explaining that you're adding a comment from the asker into the question, and also fix any other issues with the post.
[3]: ... in which case they probably didn't post a MCVE, which could be reason enough to close the question.