Fixed the crash at completion of the defense objective