fix instance pattern