fix crash without result