fix crash in base defense state.