Should `ctx.restore()` be removed here too?