fix crash error