Fixed a listener getting added instead of removed.