Fix case where target is not set