getTargetOptions bug fix