fix crash instance lost