Fixed event binding for on().