fix erroneous listener removal