fixed save/restore regression introduced in context._stroke() method