Correct a message and delete an unused variable.