small fix to instance func