[API] Fixed bug with creating too many callback handlers, and them stacking