fix bug => inline event binding to fix test