Fix bug with multiple equal callbacks not being removed with 'off' call