Issue #2391989: Notice: Undefined variable: instance