What function. That has been reported before I remember looking into but could never reproduce the issue.
Edit:
There is a few things you can try. Removing the hook on map change for example, and then re hooking. Adding a removal callback and making sure its not getting removed somewhere.