lib.js - EventDispatcher bug fix