CFY-1373 fixed usage of ctx.instance