Fixing Castellan::addListeners function