fix instance not reset