remove 'capturing' argument from 'on' method and fix 'offset.spec'