fix capture behaviour.