fixed a memory leak by cleaning up a listener on the proper object.