fix 'instance' handling to match new structure

'instance' is no longer defined in constructor so don't use it.