fix crash issue caused by typo