Consider the steps for debugging. First, you should

change the code to fix the bug
know what the code should do
run the code to see where the error is
run the code again to check if the bug is fixed