Fixed exception when removing multiple listeners