Your suggestion works; however, I don't see where that object is used after that point in the code, hence the suggestion to simply remove it.