fixed crash in no-target mode