fix issue seg faulted when su instainstantiate error